import { createApp } from "vue";
// import './style.css'
import App from "./App.vue";
import ElementPlus from "element-plus";
import * as aIcons from "@element-plus/icons-vue";
import router from "./router";
import modal from "@/utils/modal";
import { basicSetup } from "codemirror";
import VueCodemirror from "vue-codemirror";
import store from "./store";
import "@/assets/style/index.scss"; // global css
const app = createApp(App);
Object.keys(aIcons).forEach((key) => {
  app.component(key, aIcons[key]);
});

// 模态框对象
app.config.globalProperties.$elmodal = modal;

app.use(VueCodemirror, {
  placeholder: "Code goes here...",
  extensions: [basicSetup],
});
app.use(store);
app.use(router);
app.use(ElementPlus);

app.mount("#app");
